import request from '@/utils/request'
export function getLogs() {
    return request({
        url: '/Student/getLogs',  //后端接口，显示学生列表
        method: 'get'
    })
}

//删除
export function deleteLogs(logid) {
    return request({
        url: '/Student/deleteLogs?logid=' + logid,
        method: 'delete'
    })
}

//批量删除
export function deleteLogsByIds(data) {
    return request({
        url: '/Student/deleteLogsByIds',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    })
}

//修改
export function updateLogs(data){
    return request({
        method: 'post',
        maxBodyLength: Infinity,
        url: '/Student/updateLogs',
        headers: { 
          'logid': '1007', 
          'Content-Type': 'application/json'
        },
        data : data
    })
}

//通过sid查找学生信息
export function findLogsById(logid) {
    return request({
        url: '/Student/findLogsById?logid=' + logid,
        method: 'get',
    })
}

//模糊查询
export function findLogsByIds(data) {
    return request({
        method: 'post',
        maxBodyLength: Infinity,
        url: '/Student/findLogsByIds',
        headers: { 
          'sid': '1', 
          'Content-Type': 'application/json'
        },
        data : data
    })
}

